github.com/jackc/pgx/v5.sqlLexer.pos (field)
72 uses
github.com/jackc/pgx/v5 (current package)
named_args.go#L161: pos int
named_args.go#L216: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L217: l.pos += width
named_args.go#L221: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L223: l.pos += width
named_args.go#L231: if tagLen, ok := scanDollarQuoteTag(l.src[l.pos:]); ok {
named_args.go#L232: l.dollarTag = l.src[l.pos-1 : l.pos+tagLen+1]
named_args.go#L233: l.pos += tagLen + 1
named_args.go#L237: nextRune, _ := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L239: if l.pos-l.start > 0 {
named_args.go#L240: l.parts = append(l.parts, l.src[l.start:l.pos-width])
named_args.go#L242: l.start = l.pos
named_args.go#L246: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L248: l.pos += width
named_args.go#L252: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L254: l.pos += width
named_args.go#L259: if l.pos-l.start > 0 {
named_args.go#L260: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L261: l.start = l.pos
named_args.go#L270: for l.pos < len(l.src) {
named_args.go#L271: next, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L278: l.pos += width
named_args.go#L309: idx := strings.Index(l.src[l.pos:], l.dollarTag)
named_args.go#L313: l.pos = len(l.src)
named_args.go#L314: l.start = l.pos
named_args.go#L317: l.pos += idx + len(l.dollarTag)
named_args.go#L328: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L329: l.pos += width
named_args.go#L332: if l.pos-l.start > 0 {
named_args.go#L333: na := namedArg(l.src[l.start:l.pos])
named_args.go#L338: l.start = l.pos
named_args.go#L342: l.pos -= width
named_args.go#L343: na := namedArg(l.src[l.start:l.pos])
named_args.go#L348: l.start = l.pos
named_args.go#L356: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L357: l.pos += width
named_args.go#L361: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L365: l.pos += width
named_args.go#L368: if l.pos-l.start > 0 {
named_args.go#L369: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L370: l.start = l.pos
named_args.go#L380: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L381: l.pos += width
named_args.go#L385: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L389: l.pos += width
named_args.go#L392: if l.pos-l.start > 0 {
named_args.go#L393: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L394: l.start = l.pos
named_args.go#L404: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L405: l.pos += width
named_args.go#L409: _, width = utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L410: l.pos += width
named_args.go#L412: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L416: l.pos += width
named_args.go#L419: if l.pos-l.start > 0 {
named_args.go#L420: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L421: l.start = l.pos
named_args.go#L431: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L432: l.pos += width
named_args.go#L439: if l.pos-l.start > 0 {
named_args.go#L440: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L441: l.start = l.pos
named_args.go#L451: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L452: l.pos += width
named_args.go#L456: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L458: l.pos += width
named_args.go#L462: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
named_args.go#L467: l.pos += width
named_args.go#L475: if l.pos-l.start > 0 {
named_args.go#L476: l.parts = append(l.parts, l.src[l.start:l.pos])
named_args.go#L477: l.start = l.pos